import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import {LaundryServicePage} from "../laundry-service/laundry-service";

import {LampblackCleaning} from '../../models/LampblackCleaning';
import { LampblackCleaningProvider}from '../../providers/lampblack-cleaning/lampblack-cleaning';
import {HttpClient} from "@angular/common/http";

/**
 * Generated class for the LampblackCleaningPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-lampblack-cleaning',
  templateUrl: 'lampblack-cleaning.html',
})
export class LampblackCleaningPage {
  lampblack:LampblackCleaning;

  constructor(public navCtrl: NavController,
              public navParams: NavParams,
              private http: HttpClient,
              private lampblackPro:LampblackCleaningProvider,
              ) {
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad LampblackCleaningPage');
    this.lampblackPro.getData().subscribe(data=>{
      this.lampblack=<LampblackCleaning>data
    })
  }



}
